package com.hongyuan.venue.ui.home.beans;

import com.hongyuan.venue.data.md5.BaseUtil;

import java.io.Serializable;

public class TrainningDetailBeans implements Serializable {

    /**
     * ct_id : 8
     * cc_name : 篮球培训
     * os_id : 73
     * ct_price : 1200.00
     * class_hour_span : 45
     * class_hour : 12
     * ct_img : http://hongyuangood.oss-cn-hangzhou.aliyuncs.com/uplaod/image/20200928/c2cda1a665e1d84b6e261ba5ccca124b5d692b16_2800x1867.jpg
     * ct_name : 飒飒
     * mi_realname : 教练2
     * ct_brief : 阿萨撒撒撒撒撒撒撒上
     * ct_content : http://hongyuangood.oss-cn-hangzhou.aliyuncs.com/uplaod/image/20200928/5c800cb0a47279b7ef0e032de46bd291eef22e6a_2800x1867.jpg
     * ct_type : 2
     * os_address : 萨达
     * pname : 山西省
     * cname : 晋城市
     * dname : 陵川县
     * os_name : 测试1212
     * adress : 山西省晋城市陵川县萨达
     * ct_type_name : 一对一
     */

    private int ct_id;
    private String cc_name;
    private int os_id;
    private String ct_price;
    private int class_hour_span;
    private int class_hour;
    private String ct_img;
    private String ct_name;
    private String mi_realname;
    private String ct_brief;
    private String ct_content;
    private int ct_type;
    private String os_address;
    private String pname;
    private String cname;
    private String dname;
    private String os_name;
    private String adress;
    private String ct_type_name;

    public int getCt_id() {
        return ct_id;
    }

    public void setCt_id(int ct_id) {
        this.ct_id = ct_id;
    }

    public String getCc_name() {
        return cc_name;
    }

    public void setCc_name(String cc_name) {
        this.cc_name = cc_name;
    }

    public int getOs_id() {
        return os_id;
    }

    public void setOs_id(int os_id) {
        this.os_id = os_id;
    }

    public String getCt_price() {
        return ct_price;
    }

    public void setCt_price(String ct_price) {
        this.ct_price = ct_price;
    }

    public String getClass_hour_span() {
        return class_hour_span+"分钟";
    }

    public void setClass_hour_span(int class_hour_span) {
        this.class_hour_span = class_hour_span;
    }

    public String getClass_hour() {
        return class_hour+"节";
    }

    public void setClass_hour(int class_hour) {
        this.class_hour = class_hour;
    }

    public String getCt_img() {
        return ct_img;
    }

    public void setCt_img(String ct_img) {
        this.ct_img = ct_img;
    }

    public String getCt_name() {
        return ct_name;
    }

    public void setCt_name(String ct_name) {
        this.ct_name = ct_name;
    }

    public String getMi_realname() {
        return mi_realname;
    }

    public void setMi_realname(String mi_realname) {
        this.mi_realname = mi_realname;
    }

    public String getCt_brief() {
        return ct_brief;
    }

    public void setCt_brief(String ct_brief) {
        this.ct_brief = ct_brief;
    }

    public String getCt_content() {
        String h5Img = "";

        if(BaseUtil.isValue(ct_content)){
            String img[] = ct_content.split(",");
            for(int i = 0 ; i < img.length ; i++){
                h5Img += "<img src='"+img[i]+"'/>";
            }
        }

        return h5Img;
    }

    public void setCt_content(String ct_content) {
        this.ct_content = ct_content;
    }

    public int getCt_type() {
        return ct_type;
    }

    public void setCt_type(int ct_type) {
        this.ct_type = ct_type;
    }

    public String getOs_address() {
        return os_address;
    }

    public void setOs_address(String os_address) {
        this.os_address = os_address;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        this.dname = dname;
    }

    public String getOs_name() {
        return os_name;
    }

    public void setOs_name(String os_name) {
        this.os_name = os_name;
    }

    public String getAdress() {
        return adress;
    }

    public void setAdress(String adress) {
        this.adress = adress;
    }

    public String getCt_type_name() {
        return ct_type_name;
    }

    public void setCt_type_name(String ct_type_name) {
        this.ct_type_name = ct_type_name;
    }
}
